package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Rambo 2024/5/24/0024
 * Describe:
 */
public class ChantsCountDTO implements Parcelable {

    public String date;

    public int amount;


    @Override
    public int describeContents() {
        return 0;
    }

    public ChantsCountDTO(){

    }

    protected ChantsCountDTO(Parcel in){
        this.date = in.readString();
        this.amount = in.readInt();

    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.date);
        dest.writeInt(this.amount);
    }



    public static final Creator<ChantsCountDTO> CREATOR = new Creator<ChantsCountDTO>() {
        public ChantsCountDTO createFromParcel(Parcel source) {
            return new ChantsCountDTO(source);
        }

        public ChantsCountDTO[] newArray(int size) {
            return new ChantsCountDTO[size];
        }
    };

    @Override
    public String toString() {
        return "ChantsCountDTO{" +
                "data='" + date + '\'' +
                ", amount=" + amount +
                '}';
    }

}
